/*
* Copyright (C) 2012-2013, <Aeihu.z, aeihu.z@gmail.com>.
*
* Game Scenario Maker is a free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Version 2(GPLv2) as published by the Free Software Foundation.
*/

//#include "CItemListBox.h"
//
//CItemListBox CItemListBox::itemlistbox;
//
//CItemListBox::CItemListBox()
//{
//}
//
//CItemListBox::~CItemListBox()
//{
//}
//
//void CItemListBox::ClearList()
//{
//    List.clear();
//}
//
//void CItemListBox::GetListData(int index, int &icon, string &name, int &num)
//{
//    if (index < 0 || index >= List.size())
//        return;
//
//    name = List[index].first.Name;
//    num = List[index].second;
//    icon = List[index].first.Icon_TileNo;
//}
//
//int CItemListBox::GetListSize()
//{
//    return List.size();
//}
//
//void CItemListBox::OnSelectedChange(int index)
//{
//    CSoundBank::SoundControl.PlaySE(SEName_MouseOver);
//
//    if (index < 0 || index >= List.size())
//        return;
//
//    CObjectInfoBox::objectinfobox.LoadObject(&List[index].first);
//}